﻿using AopAlliance.Intercept;
using ConcreteService;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Spring.Aop;

namespace Advisor
{
    public class LogAdvisor : IMethodInterceptor
    {
        public object Invoke(IMethodInvocation invocation)
        {
            //var result = invocation.Proceed();

            //EventLog log = new EventLog();
            //log.ActionTime = DateTime.Now;
            //log.ActionType = (EventType)Enum.Parse(typeof(EventType), invocation.Method.Name);
            //object obj = invocation.Arguments[0];
            //log.EventObject = obj.GetType().Name;
            //log.Remark = obj.ToString();

            return null;
        }
    }
}
